package com.drw.start.kafka.elk.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LogController {

    private static Logger log = LogManager.getLogger(LogController.class);

    @RequestMapping("log")
    public String logtest() {
        log.debug("Spring Boot集成Kafka和ELK");
        return "sucess";
    }
}
